<template>
  <div class="home">
    <d-player class="player" :options="options" ref="player"></d-player>
  </div>
</template>

<script>
import VueDPlayer from 'vue-dplayer'
import 'vue-dplayer/dist/vue-dplayer.css'
export default {
  data(){
    return{
      options:{
        video:{
          // url:'./video/1.flv',
          // url:'https://rtmp01open.ys7.com:9188/v3/openlive/538267106_1_2.flv?expire=1681540448&id=436897363714494464&t=45cf56f151d84b31e773d9ccfc4f534858db870c018c93c15cea6aad668c8cad&ev=100',
          url:'https://open.ys7.com/v3/openlive/538267106_1_2.m3u8?expire=1681540448&id=436897363720060928&t=7e974130113f3ef9124740b78c1a09da5f547c60e57c1f2f87003983ffeba228&ev=100',
          // type:'flv'
           type:'hls'
        }
      }
    }
  },
  components: {
    'd-player': VueDPlayer,
  },

}
</script>

<style scoped>
.home{
  width: 60%;
  margin: auto;
}
</style>
